﻿using NB.MGJ.Common;
using NB.MGJ.Model.AntiFleeingEntity;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NB.MGJ.Model {
	public class CodeManage_GenCode {
		/// <summary>
		/// 主键
		/// </summary>
		[Property("Key")]
		public int ID { get; set; }
		/// <summary>
		/// 生成码的类型 1 防伪码 2 管理码 3积分码
		/// </summary>
		public string CodeType { get; set; }

        //[NotMapped]
        //public string CodeType { get; set; }
		/// <summary>
		/// 公司编号
		/// </summary>
		public int? EnterpriseId { get; set; }
		/// <summary>
		/// 产品类型编号
		/// </summary>
		public int? Product_Type_Id { get; set; }
		/// <summary>
		/// 生码数量
		/// </summary>
		public int? Gen_Code_Nums { get; set; }
		/// <summary>
		/// 生码图片
		/// </summary>
		public string Image { get; set; }
		/// <summary>
		/// 查询结果内容
		/// </summary>
		public string Query_Result_Content { get; set; }
		/// <summary>
		/// 电话查询回复
		/// </summary>
		public string Query_Tel_Content { get; set; }
		/// <summary>
		/// 短信查询回复
		/// </summary>
		public string Query_Message_Content { get; set; }
		/// <summary>
		/// 生码状态 0 待生码 1 成功
		/// </summary>
		public int? Status { get; set; }
		/// <summary>
		/// 防伪码位数
		/// </summary>
		public int? Anti_Fake_Num { get; set; }
		/// <summary>
		/// 物流码(管理码)位数 
		/// </summary>
		public int? Logistics_Num { get; set; }
		/// <summary>
		/// 排序
		/// </summary>
		public int? Sequence { get; set; }
		/// <summary>
		/// 标签图片
		/// </summary>
		public string LabelImage { get; set; }
		/// <summary>
		/// 有效期 1年 2年 3年 无限期
		/// </summary>
		public string ExpiryDate { get; set; }
		/// <summary>
		/// 删除标记0 未删 1 已删
		/// </summary>
		public int? ViewDel { get; set; }
		/// <summary>
		/// 生码批次 和GenCodeBatch关联
		/// </summary>
		public int? PatchId { get; set; }
		/// <summary>
		/// 激活方式 0 表示立即激活 1 表示出库后生效
		/// </summary>
		public int? ActiveType { get; set; }

		/// <summary>
		/// 创建人修改人ID
		/// </summary>
		public int? ChangeLoginID { get; set; }
        /// <summary>
        /// 语音文件
        /// </summary>
        public string Voicefile { get; set; }
		/// <summary>
		/// 创建人修改人名称
		/// </summary>
		public string ChangeLoginName { get; set; }
		/// <summary>
		/// 修改时间
		/// </summary>
		public DateTime? ChangeDate { get; set; }
        /// <summary>
        /// 批次
        /// </summary>
        [NotMapped]
        public string Batch { get; set; }
        /// <summary>
        /// 是否禁用
        /// </summary>
		[NotMapped]
        public int ViewFlag { get; set; }
		[NotMapped]

        /// <summary>
        /// 商品ID
        /// </summary>
		public string ProductId { get; set; }
        /// <summary>
        /// 类型ID
        /// </summary>
		[NotMapped]
		public int TypeID { get; set; }
        /// <summary>
        /// 机构名称
        /// </summary>
		[NotMapped]
		public string EnterpriseName { get; set; }
        /// <summary>
        /// 生码名
        /// </summary>
		[NotMapped]
		public string Code { get; set; }

        /// <summary>
        /// 机构名称
        /// </summary>
	    [NotMapped]
		public DateTime?DisableTime { get; set; }
        /// <summary>
        /// 商品批次ID
        /// </summary>
        [NotMapped]
        public int ProductBatchId { get; set; }
        /// <summary>
        /// 批次名
        /// </summary>
		[NotMapped]
		public string BatchName { get; set; }
        /// <summary>
        /// 产品名
        /// </summary>
		[NotMapped]
		public string ProductName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
		[NotMapped]
		public DateTime CreateDate { get; set; }
        
        /// <summary>
        /// 批次ID
        /// </summary>
        [NotMapped]
        public string BID { get; set; }

        [NotMapped]
        public string Voice { get; set; }
        [NotMapped]
        public string Title { get; set; }
        [NotMapped]
        public int CardType { get; set; }
        [NotMapped]
        public string ProductImgUrl { get; set; }      
        public string EnterpriseUse { get; set; }
        [NotMapped]
        public string ProdoctBrand { get; set; }
        [NotMapped]
        public int CardID { get; set; }
        [NotMapped]
        public List<DistributorSalesOutbounddetailsViewModel> DistributorList
        {
            get;
            set;
        }
	}

}
